package com.lak.nagivation.utils;

import lombok.Data;
import org.springframework.ui.Model;

/**
 * 统一的返回内容
 * Created by KinthXu on 2020/07/01.
 */
@Data
public class Response {

    private String code;	// 处理是否成功
    private String msg;		// 处理后消息提示
    private Object result;		// 返回数据

    protected Response(String code, Model model) {
    }

    public Response(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Response(String code, String msg, Object result) {
        this.code = code;
        this.msg = msg;
        this.result = result;
    }
}